package com.itheima.encapsulasion;

public class Test {
    public static void main(String[] args) {
        //目标：认识封装

        Girl g = new Girl();
        g.setName("小泽玛利亚");
        g.setAge(22);

        System.out.println(g.getAge());
        System.out.println(g.getName());


        Girl s = new Girl("苍井空",30);
        s.show();
    }
}
